package com.javaspeak.designpatterns.go4.structural.proxy;

/**
 * Implementation of Shape.  This is the class we are proxying.
 *
 * @author John Dickerson
 */
public class Triangle implements Shape {

    /* (non-Javadoc)
     * @see com.javaspeak.designpatterns.go4.structural.proxy.Shape#drawShape()
     */
    @Override
    public void drawShape() {

        StringBuilder sb = new StringBuilder();
        sb.append( "   x   \n" );
        sb.append( "  x x  \n" );
        sb.append( " x   x \n" );
        sb.append( "xxxxxxx\n" );

        System.out.println( sb.toString() );
    }
}
